Optimal. Leaf size=47 \[ -\frac {\sqrt {d^2-e^2 x^2}}{e}+\frac {d \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{e} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {655, 223, 209}
\begin {gather*} \frac {d \text {ArcTan}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{e}-\frac {\sqrt {d^2-e^2 x^2}}{e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 223
Rule 655
Rubi steps
\begin {align*} \int \frac {d+e x}{\sqrt {d^2-e^2 x^2}} \, dx &=-\frac {\sqrt {d^2-e^2 x^2}}{e}+d \int \frac {1}{\sqrt {d^2-e^2 x^2}} \, dx\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{e}+d \text {Subst}\left (\int \frac {1}{1+e^2 x^2} \, dx,x,\frac {x}{\sqrt {d^2-e^2 x^2}}\right )\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{e}+\frac {d \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 64, normalized size = 1.36 \begin {gather*} -\frac {\sqrt {d^2-e^2 x^2}}{e}-\frac {d \log \left (-\sqrt {-e^2} x+\sqrt {d^2-e^2 x^2}\right )}{\sqrt {-e^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.43, size = 50, normalized size = 1.06
method | result | size |
default | \(-\frac {\sqrt {-e^{2} x^{2}+d^{2}}}{e}+\frac {d \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-e^{2} x^{2}+d^{2}}}\right )}{\sqrt {e^{2}}}\) | \(50\) |
risch | \(-\frac {\sqrt {-e^{2} x^{2}+d^{2}}}{e}+\frac {d \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-e^{2} x^{2}+d^{2}}}\right )}{\sqrt {e^{2}}}\) | \(50\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 30, normalized size = 0.64 \begin {gather*} d \arcsin \left (\frac {x e}{d}\right ) e^{\left (-1\right )} - \sqrt {-x^{2} e^{2} + d^{2}} e^{\left (-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.81, size = 46, normalized size = 0.98 \begin {gather*} -{\left (2 \, d \arctan \left (-\frac {{\left (d - \sqrt {-x^{2} e^{2} + d^{2}}\right )} e^{\left (-1\right )}}{x}\right ) + \sqrt {-x^{2} e^{2} + d^{2}}\right )} e^{\left (-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.95, size = 42, normalized size = 0.89 \begin {gather*} \begin {cases} \frac {d \left (\begin {cases} \operatorname {asin}{\left (e x \sqrt {\frac {1}{d^{2}}} \right )} & \text {for}\: d^{2} > 0 \end {cases}\right ) - \sqrt {d^{2} - e^{2} x^{2}}}{e} & \text {for}\: e \neq 0 \\\frac {d x}{\sqrt {d^{2}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.78, size = 32, normalized size = 0.68 \begin {gather*} d \arcsin \left (\frac {x e}{d}\right ) e^{\left (-1\right )} \mathrm {sgn}\left (d\right ) - \sqrt {-x^{2} e^{2} + d^{2}} e^{\left (-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.93, size = 54, normalized size = 1.15 \begin {gather*} \frac {d\,\ln \left (x\,\sqrt {-e^2}+\sqrt {d^2-e^2\,x^2}\right )}{\sqrt {-e^2}}-\frac {\sqrt {d^2-e^2\,x^2}}{e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________